#include "StockAccount.h"

void StockAccount::update(int eventType){
	if (eventType == BankObserver::meetEvent){
		std::cout<<"You were called for a meeting"<<std::endl;
	}
	else if (eventType == BankObserver::depositEvent){
		std::cout<<"500 nis were deposed"<<std::endl;
	}
	else if (eventType == BankObserver::investingEvent){
		std::cout<<"Money was invested"<<std::endl;
	}
}
	
int StockAccount::getType(){
	return BankObserver::stock;
}